haslib_sources = files(
  'src/cchip.cpp',
  'src/cbus.cpp',
  'src/cobject.cpp'
)

# 设置头文件目录
haslib_inc = include_directories(
  'inc'
)

# 创建haslib动态库
haslib_lib = shared_library(
  'haslib',
  haslib_sources,
  include_directories: haslib_inc,
  install: true,
  install_dir: install_dir + 'opt/bmc/apps/devmon/lib'
)

# 导出haslib库依赖
haslib_dep = declare_dependency(
  link_with: haslib_lib,
  include_directories: haslib_inc
)